











 

<html>
<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>         <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <title>QuickIO.NET - Win32SafeNativeMethods</title>
        <meta name="viewport" content="width=device-width">

		
			<link rel="stylesheet" type="text/css" href="../assets/css/style.css" />
			<script src="../assets/js/vendor.js"></script>
			<script src="../assets/js/frame.js"></script>
		

		<script>hljs.initHighlightingOnLoad();</script>

    </head>
    <body>        
        
		<!-- DropDowns -->
		<div id="dropdown-1" class="dropdown dropdown-tip">
			<ul class="dropdown-menu">
				
			</ul>
		</div>

		<div id="dropdown-2" class="dropdown dropdown-tip">
			<ul class="dropdown-menu">
				
			</ul>
		</div>

		<div id="dropdown-3" class="dropdown dropdown-tip">
			<ul class="dropdown-menu">
				

				

					<li><a href="#ConvertStringSidToSid"><img alt="Method-Icon" src="../assets/images/icons/Method_internal.png"> ConvertStringSidToSid(String sidString, IntPtr& sidHandle)</a></li>

				

					<li><a href="#CopyFile3"><img alt="Method-Icon" src="../assets/images/icons/Method_internal.png"> CopyFile(String fullNameSource, String fullNameTarget, Boolean failOnExists)</a></li>

				

					<li><a href="#CreateDirectory4"><img alt="Method-Icon" src="../assets/images/icons/Method_internal.png"> CreateDirectory(String fullName, IntPtr securityAttributes)</a></li>

				

					<li><a href="#CreateFile4"><img alt="Method-Icon" src="../assets/images/icons/Method_internal.png"> CreateFile(String fullName, FileAccess dwDesiredAccess, FileShare dwShareMode, IntPtr lpSecurityAttributes, FileMode dwCreationDisposition, FileAttributes dwFlagsAndAttributes, IntPtr hTemplateFile)</a></li>

				

					<li><a href="#CreateFileForAppend"><img alt="Method-Icon" src="../assets/images/icons/Method_internal.png"> CreateFileForAppend(String fullName, UInt32 dwDesiredAccess, FileShare dwShareMode, IntPtr lpSecurityAttributes, FileMode dwCreationDisposition, FileAttributes dwFlagsAndAttributes, IntPtr hTemplateFile)</a></li>

				

					<li><a href="#DeleteFile8"><img alt="Method-Icon" src="../assets/images/icons/Method_internal.png"> DeleteFile(String fullName)</a></li>

				

					<li><a href="#FindClose3"><img alt="Method-Icon" src="../assets/images/icons/Method_internal.png"> FindClose(SafeHandle fileHandle)</a></li>

				

					<li><a href="#FindFirstFile2"><img alt="Method-Icon" src="../assets/images/icons/Method_internal.png"> FindFirstFile(String fullName, Win32FindData win32FindData)</a></li>

				

					<li><a href="#FindNextFile2"><img alt="Method-Icon" src="../assets/images/icons/Method_internal.png"> FindNextFile(Win32FileHandle findFileHandle, Win32FindData win32FindData)</a></li>

				

					<li><a href="#GetFileAttributes2"><img alt="Method-Icon" src="../assets/images/icons/Method_internal.png"> GetFileAttributes(String fullName)</a></li>

				

					<li><a href="#GetNamedSecurityInfo"><img alt="Method-Icon" src="../assets/images/icons/Method_internal.png"> GetNamedSecurityInfo(String unicodePath, Win32SecurityObjectType securityObjectType, Win32FileSystemEntrySecurityInformation securityInfo, IntPtr& sidOwner, IntPtr& sidGroup, IntPtr& dacl, IntPtr& sacl, IntPtr& securityDescriptor)</a></li>

				

					<li><a href="#GetSecurityDescriptorLength"><img alt="Method-Icon" src="../assets/images/icons/Method_internal.png"> GetSecurityDescriptorLength(IntPtr byteArray)</a></li>

				

					<li><a href="#LocalFree2"><img alt="Method-Icon" src="../assets/images/icons/Method_internal.png"> LocalFree(IntPtr handle)</a></li>

				

					<li><a href="#LookupAccountSid"><img alt="Method-Icon" src="../assets/images/icons/Method_internal.png"> LookupAccountSid(String systemName, IntPtr sidHandle, StringBuilder name, Int32& cchName, StringBuilder domainName, Int32& cchDomainName, Int32& peUse)</a></li>

				

					<li><a href="#MoveFile3"><img alt="Method-Icon" src="../assets/images/icons/Method_internal.png"> MoveFile(String fullNameSource, String fullNameTarget)</a></li>

				

					<li><a href="#OpenReadWriteFileSystemEntryHandle2"><img alt="Method-Icon" src="../assets/images/icons/Method_internal.png"> OpenReadWriteFileSystemEntryHandle(String fullName, UInt32 dwAccess, FileShare dwShareMode, IntPtr lpSecurityAttributes, FileMode dwMode, UInt32 dwAttribute, IntPtr hTemplateFile)</a></li>

				

					<li><a href="#RemoveDirectory2"><img alt="Method-Icon" src="../assets/images/icons/Method_internal.png"> RemoveDirectory(String fullName)</a></li>

				

					<li><a href="#SetAllFileTimes9"><img alt="Method-Icon" src="../assets/images/icons/Method_internal.png"> SetAllFileTimes(SafeFileHandle fileHandle, Int64& lpCreationTime, Int64& lpLastAccessTime, Int64& lpLastWriteTime)</a></li>

				

					<li><a href="#SetCreationFileTime2"><img alt="Method-Icon" src="../assets/images/icons/Method_internal.png"> SetCreationFileTime(SafeFileHandle hFile, Int64& lpCreationTime, IntPtr lpLastAccessTime, IntPtr lpLastWriteTime)</a></li>

				

					<li><a href="#SetFileAttributes2"><img alt="Method-Icon" src="../assets/images/icons/Method_internal.png"> SetFileAttributes(String fullName, UInt32 fileAttributes)</a></li>

				

					<li><a href="#SetLastAccessFileTime2"><img alt="Method-Icon" src="../assets/images/icons/Method_internal.png"> SetLastAccessFileTime(SafeFileHandle hFile, IntPtr lpCreationTime, Int64& lpLastAccessTime, IntPtr lpLastWriteTime)</a></li>

				

					<li><a href="#SetLastWriteFileTime2"><img alt="Method-Icon" src="../assets/images/icons/Method_internal.png"> SetLastWriteFileTime(SafeFileHandle hFile, IntPtr lpCreationTime, IntPtr lpLastAccessTime, Int64& lpLastWriteTime)</a></li>

				

					<li><a href="#SetNamedSecurityInfo"><img alt="Method-Icon" src="../assets/images/icons/Method_internal.png"> SetNamedSecurityInfo(String unicodePath, Win32SecurityObjectType objectType, Win32FileSystemEntrySecurityInformation securityInfo, IntPtr sidOwner, IntPtr sidGroup, IntPtr dacl, IntPtr sacl)</a></li>

				
			</ul>
		</div>

		<div id="dropdown-4" class="dropdown dropdown-tip">
			<ul class="dropdown-menu">
				
			</ul>
		</div>
		<!-- DropDowns Ende -->

	    <div class="ui-layout-north">
			<div class="toolbar">

				
					<a href="#" data-dropdown="#dropdown-3" class="button"><img src="../assets/images/icons/Method_public.png"/> Methods <span class="info">(23)</span> <i class="icon-caret-down"></i></a>
				

				<div class="right">
					<span class="toolbar-info"> Namespace: SchwabenCode.QuickIO.Win32API</span>
					<a href="#" id="expand-all-button" class="button"><i class="icon-align-justify" title="Expand all"></i></a>
					<a href="#" id="print-button" class="button"><i class="icon-print" title="Print"></i></a>
				</div>
			</div>
		</div>
        
		<div class="ui-layout-center">
			
			
				<div id="sd-class-diagram">
					
					<svg height="484.00" width="250.00"><g transform="scale(0.74)"><rect height="646" width="335" x="0.55" y="0.55" fill="#FFFFFF" stroke="#979797" stroke-width="1" /><text x="114.78" y="20.50" fill="" style="" text-anchor="" font-family="" font-size="11.00" onmouseover="" onmouseout=""><![CDATA[internal static class]]></text><a xlink:href="../type/Win32SafeNativeMethods2.html" xmlns:xlink="xlink"><text x="78.32" y="40.50" fill="#1382CE" style="" text-anchor="" font-family="" font-size="14.00" onmouseover="this.setAttribute('fill', '#F58026')" onmouseout="this.setAttribute('fill', '#1382CE')"><![CDATA[Win32SafeNativeMethods]]></text></a><path d="M0.5,55.50L336.00,55.50" stroke="#979797" stroke-width="1" /><image width="16.00" height="16.00" x="15.00" y="68.50" preserveAspectRatio="" xlink:href="" xmlns:xlink="xlink" /><a xlink:href="../method/SchwabenCode.QuickIO.Win32API.Win32SafeNativeMethods.ConvertStringSidToSid(System.String, System.IntPtr&amp;).html" xmlns:xlink="xlink"><text x="40.00" y="80.50" fill="#1382CE" style="" text-anchor="" font-family="" font-size="14.00" onmouseover="this.setAttribute('fill', '#F58026')" onmouseout="this.setAttribute('fill', '#1382CE')"><![CDATA[ConvertStringSidToSid]]></text></a><image width="16.00" height="16.00" x="15.00" y="93.50" preserveAspectRatio="" xlink:href="" xmlns:xlink="xlink" /><a xlink:href="../type/Win32SafeNativeMethods2.html#CopyFile3" xmlns:xlink="xlink"><text x="40.00" y="105.50" fill="#1382CE" style="" text-anchor="" font-family="" font-size="14.00" onmouseover="this.setAttribute('fill', '#F58026')" onmouseout="this.setAttribute('fill', '#1382CE')"><![CDATA[CopyFile]]></text></a><image width="16.00" height="16.00" x="15.00" y="118.50" preserveAspectRatio="" xlink:href="" xmlns:xlink="xlink" /><a xlink:href="../type/Win32SafeNativeMethods2.html#CreateDirectory4" xmlns:xlink="xlink"><text x="40.00" y="130.50" fill="#1382CE" style="" text-anchor="" font-family="" font-size="14.00" onmouseover="this.setAttribute('fill', '#F58026')" onmouseout="this.setAttribute('fill', '#1382CE')"><![CDATA[CreateDirectory]]></text></a><image width="16.00" height="16.00" x="15.00" y="143.50" preserveAspectRatio="" xlink:href="" xmlns:xlink="xlink" /><a xlink:href="../type/Win32SafeNativeMethods2.html#CreateFile4" xmlns:xlink="xlink"><text x="40.00" y="155.50" fill="#1382CE" style="" text-anchor="" font-family="" font-size="14.00" onmouseover="this.setAttribute('fill', '#F58026')" onmouseout="this.setAttribute('fill', '#1382CE')"><![CDATA[CreateFile]]></text></a><image width="16.00" height="16.00" x="15.00" y="168.50" preserveAspectRatio="" xlink:href="" xmlns:xlink="xlink" /><a xlink:href="../type/Win32SafeNativeMethods2.html#CreateFileForAppend" xmlns:xlink="xlink"><text x="40.00" y="180.50" fill="#1382CE" style="" text-anchor="" font-family="" font-size="14.00" onmouseover="this.setAttribute('fill', '#F58026')" onmouseout="this.setAttribute('fill', '#1382CE')"><![CDATA[CreateFileForAppend]]></text></a><image width="16.00" height="16.00" x="15.00" y="193.50" preserveAspectRatio="" xlink:href="" xmlns:xlink="xlink" /><a xlink:href="../type/Win32SafeNativeMethods2.html#DeleteFile8" xmlns:xlink="xlink"><text x="40.00" y="205.50" fill="#1382CE" style="" text-anchor="" font-family="" font-size="14.00" onmouseover="this.setAttribute('fill', '#F58026')" onmouseout="this.setAttribute('fill', '#1382CE')"><![CDATA[DeleteFile]]></text></a><image width="16.00" height="16.00" x="15.00" y="218.50" preserveAspectRatio="" xlink:href="" xmlns:xlink="xlink" /><a xlink:href="../type/Win32SafeNativeMethods2.html#FindClose3" xmlns:xlink="xlink"><text x="40.00" y="230.50" fill="#1382CE" style="" text-anchor="" font-family="" font-size="14.00" onmouseover="this.setAttribute('fill', '#F58026')" onmouseout="this.setAttribute('fill', '#1382CE')"><![CDATA[FindClose]]></text></a><image width="16.00" height="16.00" x="15.00" y="243.50" preserveAspectRatio="" xlink:href="" xmlns:xlink="xlink" /><a xlink:href="../type/Win32SafeNativeMethods2.html#FindFirstFile2" xmlns:xlink="xlink"><text x="40.00" y="255.50" fill="#1382CE" style="" text-anchor="" font-family="" font-size="14.00" onmouseover="this.setAttribute('fill', '#F58026')" onmouseout="this.setAttribute('fill', '#1382CE')"><![CDATA[FindFirstFile]]></text></a><image width="16.00" height="16.00" x="15.00" y="268.50" preserveAspectRatio="" xlink:href="" xmlns:xlink="xlink" /><a xlink:href="../type/Win32SafeNativeMethods2.html#FindNextFile2" xmlns:xlink="xlink"><text x="40.00" y="280.50" fill="#1382CE" style="" text-anchor="" font-family="" font-size="14.00" onmouseover="this.setAttribute('fill', '#F58026')" onmouseout="this.setAttribute('fill', '#1382CE')"><![CDATA[FindNextFile]]></text></a><image width="16.00" height="16.00" x="15.00" y="293.50" preserveAspectRatio="" xlink:href="" xmlns:xlink="xlink" /><a xlink:href="../type/Win32SafeNativeMethods2.html#GetFileAttributes2" xmlns:xlink="xlink"><text x="40.00" y="305.50" fill="#1382CE" style="" text-anchor="" font-family="" font-size="14.00" onmouseover="this.setAttribute('fill', '#F58026')" onmouseout="this.setAttribute('fill', '#1382CE')"><![CDATA[GetFileAttributes]]></text></a><image width="16.00" height="16.00" x="15.00" y="318.50" preserveAspectRatio="" xlink:href="" xmlns:xlink="xlink" /><a xlink:href="../method/SchwabenCode.QuickIO.Win32API.Win32SafeNativeMethods.GetNamedSecurityInfo(System.String, SchwabenCode.QuickIO.Win32API.Win32SecurityObjectType, SchwabenCode.QuickIO.Win32API.Win32FileSystemEntrySecurityInformation, System.IntPtr&amp;, System.IntPtr&amp;, System.IntPtr&amp;, System.IntPtr&amp;, System.IntPtr&amp;).html" xmlns:xlink="xlink"><text x="40.00" y="330.50" fill="#1382CE" style="" text-anchor="" font-family="" font-size="14.00" onmouseover="this.setAttribute('fill', '#F58026')" onmouseout="this.setAttribute('fill', '#1382CE')"><![CDATA[GetNamedSecurityInfo]]></text></a><image width="16.00" height="16.00" x="15.00" y="343.50" preserveAspectRatio="" xlink:href="" xmlns:xlink="xlink" /><a xlink:href="../type/Win32SafeNativeMethods2.html#GetSecurityDescriptorLength" xmlns:xlink="xlink"><text x="40.00" y="355.50" fill="#1382CE" style="" text-anchor="" font-family="" font-size="14.00" onmouseover="this.setAttribute('fill', '#F58026')" onmouseout="this.setAttribute('fill', '#1382CE')"><![CDATA[GetSecurityDescriptorLength]]></text></a><image width="16.00" height="16.00" x="15.00" y="368.50" preserveAspectRatio="" xlink:href="" xmlns:xlink="xlink" /><a xlink:href="../type/Win32SafeNativeMethods2.html#LocalFree2" xmlns:xlink="xlink"><text x="40.00" y="380.50" fill="#1382CE" style="" text-anchor="" font-family="" font-size="14.00" onmouseover="this.setAttribute('fill', '#F58026')" onmouseout="this.setAttribute('fill', '#1382CE')"><![CDATA[LocalFree]]></text></a><image width="16.00" height="16.00" x="15.00" y="393.50" preserveAspectRatio="" xlink:href="" xmlns:xlink="xlink" /><a xlink:href="../method/SchwabenCode.QuickIO.Win32API.Win32SafeNativeMethods.LookupAccountSid(System.String, System.IntPtr, System.Text.StringBuilder, System.Int32&amp;, System.Text.StringBuilder, System.Int32&amp;, System.Int32&amp;).html" xmlns:xlink="xlink"><text x="40.00" y="405.50" fill="#1382CE" style="" text-anchor="" font-family="" font-size="14.00" onmouseover="this.setAttribute('fill', '#F58026')" onmouseout="this.setAttribute('fill', '#1382CE')"><![CDATA[LookupAccountSid]]></text></a><image width="16.00" height="16.00" x="15.00" y="418.50" preserveAspectRatio="" xlink:href="" xmlns:xlink="xlink" /><a xlink:href="../type/Win32SafeNativeMethods2.html#MoveFile3" xmlns:xlink="xlink"><text x="40.00" y="430.50" fill="#1382CE" style="" text-anchor="" font-family="" font-size="14.00" onmouseover="this.setAttribute('fill', '#F58026')" onmouseout="this.setAttribute('fill', '#1382CE')"><![CDATA[MoveFile]]></text></a><image width="16.00" height="16.00" x="15.00" y="443.50" preserveAspectRatio="" xlink:href="" xmlns:xlink="xlink" /><a xlink:href="../type/Win32SafeNativeMethods2.html#OpenReadWriteFileSystemEntryHandle2" xmlns:xlink="xlink"><text x="40.00" y="455.50" fill="#1382CE" style="" text-anchor="" font-family="" font-size="14.00" onmouseover="this.setAttribute('fill', '#F58026')" onmouseout="this.setAttribute('fill', '#1382CE')"><![CDATA[OpenReadWriteFileSystemEntryHandle]]></text></a><image width="16.00" height="16.00" x="15.00" y="468.50" preserveAspectRatio="" xlink:href="" xmlns:xlink="xlink" /><a xlink:href="../type/Win32SafeNativeMethods2.html#RemoveDirectory2" xmlns:xlink="xlink"><text x="40.00" y="480.50" fill="#1382CE" style="" text-anchor="" font-family="" font-size="14.00" onmouseover="this.setAttribute('fill', '#F58026')" onmouseout="this.setAttribute('fill', '#1382CE')"><![CDATA[RemoveDirectory]]></text></a><image width="16.00" height="16.00" x="15.00" y="493.50" preserveAspectRatio="" xlink:href="" xmlns:xlink="xlink" /><a xlink:href="../method/SchwabenCode.QuickIO.Win32API.Win32SafeNativeMethods.SetAllFileTimes(Microsoft.Win32.SafeHandles.SafeFileHandle, System.Int64&amp;, System.Int64&amp;, System.Int64&amp;).html" xmlns:xlink="xlink"><text x="40.00" y="505.50" fill="#1382CE" style="" text-anchor="" font-family="" font-size="14.00" onmouseover="this.setAttribute('fill', '#F58026')" onmouseout="this.setAttribute('fill', '#1382CE')"><![CDATA[SetAllFileTimes]]></text></a><image width="16.00" height="16.00" x="15.00" y="518.50" preserveAspectRatio="" xlink:href="" xmlns:xlink="xlink" /><a xlink:href="../method/SchwabenCode.QuickIO.Win32API.Win32SafeNativeMethods.SetCreationFileTime(Microsoft.Win32.SafeHandles.SafeFileHandle, System.Int64&amp;, System.IntPtr, System.IntPtr).html" xmlns:xlink="xlink"><text x="40.00" y="530.50" fill="#1382CE" style="" text-anchor="" font-family="" font-size="14.00" onmouseover="this.setAttribute('fill', '#F58026')" onmouseout="this.setAttribute('fill', '#1382CE')"><![CDATA[SetCreationFileTime]]></text></a><image width="16.00" height="16.00" x="15.00" y="543.50" preserveAspectRatio="" xlink:href="" xmlns:xlink="xlink" /><a xlink:href="../type/Win32SafeNativeMethods2.html#SetFileAttributes2" xmlns:xlink="xlink"><text x="40.00" y="555.50" fill="#1382CE" style="" text-anchor="" font-family="" font-size="14.00" onmouseover="this.setAttribute('fill', '#F58026')" onmouseout="this.setAttribute('fill', '#1382CE')"><![CDATA[SetFileAttributes]]></text></a><image width="16.00" height="16.00" x="15.00" y="568.50" preserveAspectRatio="" xlink:href="" xmlns:xlink="xlink" /><a xlink:href="../method/SchwabenCode.QuickIO.Win32API.Win32SafeNativeMethods.SetLastAccessFileTime(Microsoft.Win32.SafeHandles.SafeFileHandle, System.IntPtr, System.Int64&amp;, System.IntPtr).html" xmlns:xlink="xlink"><text x="40.00" y="580.50" fill="#1382CE" style="" text-anchor="" font-family="" font-size="14.00" onmouseover="this.setAttribute('fill', '#F58026')" onmouseout="this.setAttribute('fill', '#1382CE')"><![CDATA[SetLastAccessFileTime]]></text></a><image width="16.00" height="16.00" x="15.00" y="593.50" preserveAspectRatio="" xlink:href="" xmlns:xlink="xlink" /><a xlink:href="../method/SchwabenCode.QuickIO.Win32API.Win32SafeNativeMethods.SetLastWriteFileTime(Microsoft.Win32.SafeHandles.SafeFileHandle, System.IntPtr, System.IntPtr, System.Int64&amp;).html" xmlns:xlink="xlink"><text x="40.00" y="605.50" fill="#1382CE" style="" text-anchor="" font-family="" font-size="14.00" onmouseover="this.setAttribute('fill', '#F58026')" onmouseout="this.setAttribute('fill', '#1382CE')"><![CDATA[SetLastWriteFileTime]]></text></a><image width="16.00" height="16.00" x="15.00" y="618.50" preserveAspectRatio="" xlink:href="" xmlns:xlink="xlink" /><a xlink:href="../type/Win32SafeNativeMethods2.html#SetNamedSecurityInfo" xmlns:xlink="xlink"><text x="40.00" y="630.50" fill="#1382CE" style="" text-anchor="" font-family="" font-size="14.00" onmouseover="this.setAttribute('fill', '#F58026')" onmouseout="this.setAttribute('fill', '#1382CE')"><![CDATA[SetNamedSecurityInfo]]></text></a></g></svg>
				</div>
			

			<div class="right-margin">
				<h3 class="box-title first-heading">Syntax</h3>					
				<div class="syntax-box">
					<pre class="wrap-pre"><code>internal static class Win32SafeNativeMethods : object</code></pre>
				</div>

				
					<h3 class="box-title">Basetype</h3>
					<div class="list-box">
						<ul>
						
								<li>System.object</a></li>
							
						
						</ul>
					</div>
				

				
        
				

					
						<h3 class="box-title">Summary</h3>
						<div class="doc-box markdown">
							<p>Native Methods - take a look on www.pinvoke.net</p>

						</div>
					

					

					

					

					

					

					

					

				

				

				
					<h3 class="box-title">Used by</h3>
					<div class="list-box">
						<ul>
						
							<li><a href="../type/InternalQuickIO.html">InternalQuickIO</a></li>
						
							<li><a href="../type/QuickIOFileSystemSecurity.html">QuickIOFileSystemSecurity</a></li>
						
							<li><a href="../type/Win32FileHandle.html">Win32FileHandle</a></li>
						
						</ul>
					</div>
				

				

				

				
					<h3 class="box-title">Methods</h3>
					
						












 



<div id="ConvertStringSidToSid" class="member">
	<div class="member-header">		
		<a href="#"><i class="icon-caret-right"></i><img src="../assets/images/icons/Method_internal.png"/> <p>ConvertStringSidToSid(String sidString, IntPtr& sidHandle)</p></a>
		
	</div>

	<div class="member-content">

		<div class="syntax-box">
			<pre class="wrap-pre"><code>internal static Boolean ConvertStringSidToSid(String sidString, IntPtr&amp; sidHandle)</code></pre>
		</div>		
        
		

		

	</div>
</div>


					
						












 



<div id="CopyFile3" class="member">
	<div class="member-header">		
		<a href="#"><i class="icon-caret-right"></i><img src="../assets/images/icons/Method_internal.png"/> <p>CopyFile(String fullNameSource, String fullNameTarget, Boolean failOnExists)</p></a>
		
			
				<div class="summary markdown">
					<p>Copy file</p>

				</div>
			
		
	</div>

	<div class="member-content">

		<div class="syntax-box">
			<pre class="wrap-pre"><code>internal static Boolean CopyFile(String fullNameSource, String fullNameTarget, Boolean failOnExists)</code></pre>
		</div>		
        
		
		
			

			

			

			

			

			
						
			

		

		

	</div>
</div>


					
						












 



<div id="CreateDirectory4" class="member">
	<div class="member-header">		
		<a href="#"><i class="icon-caret-right"></i><img src="../assets/images/icons/Method_internal.png"/> <p>CreateDirectory(String fullName, IntPtr securityAttributes)</p></a>
		
			
				<div class="summary markdown">
					<p>Create directory</p>

				</div>
			
		
	</div>

	<div class="member-content">

		<div class="syntax-box">
			<pre class="wrap-pre"><code>internal static Boolean CreateDirectory(String fullName, IntPtr securityAttributes)</code></pre>
		</div>		
        
		
		
			

			

			

			

			

			
						
			

		

		

	</div>
</div>


					
						












 



<div id="CreateFile4" class="member">
	<div class="member-header">		
		<a href="#"><i class="icon-caret-right"></i><img src="../assets/images/icons/Method_internal.png"/> <p>CreateFile(String fullName, FileAccess dwDesiredAccess, FileShare dwShareMode, IntPtr lpSecurityAttributes, FileMode dwCreationDisposition, FileAttributes dwFlagsAndAttributes, IntPtr hTemplateFile)</p></a>
		
			
				<div class="summary markdown">
					<p>Creates a file / directory or opens an handle for an existing file.</p>

<p>Otherwise it you'll get an invalid handle</p>

				</div>
			
		
	</div>

	<div class="member-content">

		<div class="syntax-box">
			<pre class="wrap-pre"><code>internal static SafeFileHandle CreateFile(String fullName, FileAccess dwDesiredAccess, FileShare dwShareMode, IntPtr lpSecurityAttributes, FileMode dwCreationDisposition, FileAttributes dwFlagsAndAttributes, IntPtr hTemplateFile)</code></pre>
		</div>		
        
		
		
			

			

			

			

			

			
						
			

		

		

	</div>
</div>


					
						












 



<div id="CreateFileForAppend" class="member">
	<div class="member-header">		
		<a href="#"><i class="icon-caret-right"></i><img src="../assets/images/icons/Method_internal.png"/> <p>CreateFileForAppend(String fullName, UInt32 dwDesiredAccess, FileShare dwShareMode, IntPtr lpSecurityAttributes, FileMode dwCreationDisposition, FileAttributes dwFlagsAndAttributes, IntPtr hTemplateFile)</p></a>
		
			
				<div class="summary markdown">
					<p>Open handle for appending</p>

<p>FileMode has to be 0x0004 for internal appending mode</p>

				</div>
			
		
	</div>

	<div class="member-content">

		<div class="syntax-box">
			<pre class="wrap-pre"><code>internal static SafeFileHandle CreateFileForAppend(String fullName, UInt32 dwDesiredAccess, FileShare dwShareMode, IntPtr lpSecurityAttributes, FileMode dwCreationDisposition, FileAttributes dwFlagsAndAttributes, IntPtr hTemplateFile)</code></pre>
		</div>		
        
		
		
			

			

			

			

			

			
						
			

		

		

	</div>
</div>


					
						












 



<div id="DeleteFile8" class="member">
	<div class="member-header">		
		<a href="#"><i class="icon-caret-right"></i><img src="../assets/images/icons/Method_internal.png"/> <p>DeleteFile(String fullName)</p></a>
		
			
				<div class="summary markdown">
					<p>Removes a file.</p>

				</div>
			
		
	</div>

	<div class="member-content">

		<div class="syntax-box">
			<pre class="wrap-pre"><code>internal static Boolean DeleteFile(String fullName)</code></pre>
		</div>		
        
		
		
			

			

			

			

			

			
						
			

		

		

	</div>
</div>


					
						












 



<div id="FindClose3" class="member">
	<div class="member-header">		
		<a href="#"><i class="icon-caret-right"></i><img src="../assets/images/icons/Method_internal.png"/> <p>FindClose(SafeHandle fileHandle)</p></a>
		
			
				<div class="summary markdown">
					<p>Close Hnalde</p>

				</div>
			
		
	</div>

	<div class="member-content">

		<div class="syntax-box">
			<pre class="wrap-pre"><code>internal static Boolean FindClose(SafeHandle fileHandle)</code></pre>
		</div>		
        
		
		
			

			

			

			

			

			
						
			

		

		

	</div>
</div>


					
						












 



<div id="FindFirstFile2" class="member">
	<div class="member-header">		
		<a href="#"><i class="icon-caret-right"></i><img src="../assets/images/icons/Method_internal.png"/> <p>FindFirstFile(String fullName, Win32FindData win32FindData)</p></a>
		
			
				<div class="summary markdown">
					<p>Finds first file of given path</p>

				</div>
			
		
	</div>

	<div class="member-content">

		<div class="syntax-box">
			<pre class="wrap-pre"><code>internal static Win32FileHandle FindFirstFile(String fullName, Win32FindData win32FindData)</code></pre>
		</div>		
        
		
		
			

			

			

			

			

			
						
			

		

		

	</div>
</div>


					
						












 



<div id="FindNextFile2" class="member">
	<div class="member-header">		
		<a href="#"><i class="icon-caret-right"></i><img src="../assets/images/icons/Method_internal.png"/> <p>FindNextFile(Win32FileHandle findFileHandle, Win32FindData win32FindData)</p></a>
		
			
				<div class="summary markdown">
					<p>Finds next file of current handle</p>

				</div>
			
		
	</div>

	<div class="member-content">

		<div class="syntax-box">
			<pre class="wrap-pre"><code>internal static Boolean FindNextFile(Win32FileHandle findFileHandle, Win32FindData win32FindData)</code></pre>
		</div>		
        
		
		
			

			

			

			

			

			
						
			

		

		

	</div>
</div>


					
						












 



<div id="GetFileAttributes2" class="member">
	<div class="member-header">		
		<a href="#"><i class="icon-caret-right"></i><img src="../assets/images/icons/Method_internal.png"/> <p>GetFileAttributes(String fullName)</p></a>
		
			
				<div class="summary markdown">
					<p>Gets Attributes of given path</p>

				</div>
			
		
	</div>

	<div class="member-content">

		<div class="syntax-box">
			<pre class="wrap-pre"><code>internal static UInt32 GetFileAttributes(String fullName)</code></pre>
		</div>		
        
		
		
			

			

			

			

			

			
						
			

		

		

	</div>
</div>


					
						












 



<div id="GetNamedSecurityInfo" class="member">
	<div class="member-header">		
		<a href="#"><i class="icon-caret-right"></i><img src="../assets/images/icons/Method_internal.png"/> <p>GetNamedSecurityInfo(String unicodePath, Win32SecurityObjectType securityObjectType, Win32FileSystemEntrySecurityInformation securityInfo, IntPtr& sidOwner, IntPtr& sidGroup, IntPtr& dacl, IntPtr& sacl, IntPtr& securityDescriptor)</p></a>
		
	</div>

	<div class="member-content">

		<div class="syntax-box">
			<pre class="wrap-pre"><code>internal static UInt32 GetNamedSecurityInfo(String unicodePath, Win32SecurityObjectType securityObjectType, Win32FileSystemEntrySecurityInformation securityInfo, IntPtr&amp; sidOwner, IntPtr&amp; sidGroup, IntPtr&amp; dacl, IntPtr&amp; sacl, IntPtr&amp; securityDescriptor)</code></pre>
		</div>		
        
		

		

	</div>
</div>


					
						












 



<div id="GetSecurityDescriptorLength" class="member">
	<div class="member-header">		
		<a href="#"><i class="icon-caret-right"></i><img src="../assets/images/icons/Method_internal.png"/> <p>GetSecurityDescriptorLength(IntPtr byteArray)</p></a>
		
	</div>

	<div class="member-content">

		<div class="syntax-box">
			<pre class="wrap-pre"><code>internal static UInt32 GetSecurityDescriptorLength(IntPtr byteArray)</code></pre>
		</div>		
        
		

		

	</div>
</div>


					
						












 



<div id="LocalFree2" class="member">
	<div class="member-header">		
		<a href="#"><i class="icon-caret-right"></i><img src="../assets/images/icons/Method_internal.png"/> <p>LocalFree(IntPtr handle)</p></a>
		
			
				<div class="summary markdown">
					<p>Free unmanaged memory</p>

				</div>
			
		
	</div>

	<div class="member-content">

		<div class="syntax-box">
			<pre class="wrap-pre"><code>internal static IntPtr LocalFree(IntPtr handle)</code></pre>
		</div>		
        
		
		
			

			

			

			

			

			
						
			

		

		

	</div>
</div>


					
						












 



<div id="LookupAccountSid" class="member">
	<div class="member-header">		
		<a href="#"><i class="icon-caret-right"></i><img src="../assets/images/icons/Method_internal.png"/> <p>LookupAccountSid(String systemName, IntPtr sidHandle, StringBuilder name, Int32& cchName, StringBuilder domainName, Int32& cchDomainName, Int32& peUse)</p></a>
		
	</div>

	<div class="member-content">

		<div class="syntax-box">
			<pre class="wrap-pre"><code>internal static UInt32 LookupAccountSid(String systemName, IntPtr sidHandle, StringBuilder name, Int32&amp; cchName, StringBuilder domainName, Int32&amp; cchDomainName, Int32&amp; peUse)</code></pre>
		</div>		
        
		

		

	</div>
</div>


					
						












 



<div id="MoveFile3" class="member">
	<div class="member-header">		
		<a href="#"><i class="icon-caret-right"></i><img src="../assets/images/icons/Method_internal.png"/> <p>MoveFile(String fullNameSource, String fullNameTarget)</p></a>
		
			
				<div class="summary markdown">
					<p>Moves a directory</p>

				</div>
			
		
	</div>

	<div class="member-content">

		<div class="syntax-box">
			<pre class="wrap-pre"><code>internal static Boolean MoveFile(String fullNameSource, String fullNameTarget)</code></pre>
		</div>		
        
		
		
			

			

			

			

			

			
						
			

		

		

	</div>
</div>


					
						












 



<div id="OpenReadWriteFileSystemEntryHandle2" class="member">
	<div class="member-header">		
		<a href="#"><i class="icon-caret-right"></i><img src="../assets/images/icons/Method_internal.png"/> <p>OpenReadWriteFileSystemEntryHandle(String fullName, UInt32 dwAccess, FileShare dwShareMode, IntPtr lpSecurityAttributes, FileMode dwMode, UInt32 dwAttribute, IntPtr hTemplateFile)</p></a>
		
			
				<div class="summary markdown">
					<p>Use this to open an handle for an existing file or directory to change for example the timestamps</p>

				</div>
			
		
	</div>

	<div class="member-content">

		<div class="syntax-box">
			<pre class="wrap-pre"><code>internal static SafeFileHandle OpenReadWriteFileSystemEntryHandle(String fullName, UInt32 dwAccess, FileShare dwShareMode, IntPtr lpSecurityAttributes, FileMode dwMode, UInt32 dwAttribute, IntPtr hTemplateFile)</code></pre>
		</div>		
        
		
		
			

			

			

			

			

			
						
			

		

		

	</div>
</div>


					
						












 



<div id="RemoveDirectory2" class="member">
	<div class="member-header">		
		<a href="#"><i class="icon-caret-right"></i><img src="../assets/images/icons/Method_internal.png"/> <p>RemoveDirectory(String fullName)</p></a>
		
			
				<div class="summary markdown">
					<p>Removes a file.</p>

				</div>
			
		
	</div>

	<div class="member-content">

		<div class="syntax-box">
			<pre class="wrap-pre"><code>internal static Boolean RemoveDirectory(String fullName)</code></pre>
		</div>		
        
		
		
			

			

			

			

			

			
						
			

		

		

	</div>
</div>


					
						












 



<div id="SetAllFileTimes9" class="member">
	<div class="member-header">		
		<a href="#"><i class="icon-caret-right"></i><img src="../assets/images/icons/Method_internal.png"/> <p>SetAllFileTimes(SafeFileHandle fileHandle, Int64& lpCreationTime, Int64& lpLastAccessTime, Int64& lpLastWriteTime)</p></a>
		
			
				<div class="summary markdown">
					<p>Sets the last all times for files or directories</p>

				</div>
			
		
	</div>

	<div class="member-content">

		<div class="syntax-box">
			<pre class="wrap-pre"><code>internal static Int32 SetAllFileTimes(SafeFileHandle fileHandle, Int64&amp; lpCreationTime, Int64&amp; lpLastAccessTime, Int64&amp; lpLastWriteTime)</code></pre>
		</div>		
        
		
		
			

			

			

			

			

			
						
			

		

		

	</div>
</div>


					
						












 



<div id="SetCreationFileTime2" class="member">
	<div class="member-header">		
		<a href="#"><i class="icon-caret-right"></i><img src="../assets/images/icons/Method_internal.png"/> <p>SetCreationFileTime(SafeFileHandle hFile, Int64& lpCreationTime, IntPtr lpLastAccessTime, IntPtr lpLastWriteTime)</p></a>
		
			
				<div class="summary markdown">
					<p>Sets the last creation time for files or directories</p>

				</div>
			
		
	</div>

	<div class="member-content">

		<div class="syntax-box">
			<pre class="wrap-pre"><code>internal static Boolean SetCreationFileTime(SafeFileHandle hFile, Int64&amp; lpCreationTime, IntPtr lpLastAccessTime, IntPtr lpLastWriteTime)</code></pre>
		</div>		
        
		
		
			

			

			

			

			

			
						
			

		

		

	</div>
</div>


					
						












 



<div id="SetFileAttributes2" class="member">
	<div class="member-header">		
		<a href="#"><i class="icon-caret-right"></i><img src="../assets/images/icons/Method_internal.png"/> <p>SetFileAttributes(String fullName, UInt32 fileAttributes)</p></a>
		
			
				<div class="summary markdown">
					<p>Set File Attributes</p>

				</div>
			
		
	</div>

	<div class="member-content">

		<div class="syntax-box">
			<pre class="wrap-pre"><code>internal static Boolean SetFileAttributes(String fullName, UInt32 fileAttributes)</code></pre>
		</div>		
        
		
		
			

			

			

			

			

			
						
			

		

		

	</div>
</div>


					
						












 



<div id="SetLastAccessFileTime2" class="member">
	<div class="member-header">		
		<a href="#"><i class="icon-caret-right"></i><img src="../assets/images/icons/Method_internal.png"/> <p>SetLastAccessFileTime(SafeFileHandle hFile, IntPtr lpCreationTime, Int64& lpLastAccessTime, IntPtr lpLastWriteTime)</p></a>
		
			
				<div class="summary markdown">
					<p>Sets the last acess time for files or directories</p>

				</div>
			
		
	</div>

	<div class="member-content">

		<div class="syntax-box">
			<pre class="wrap-pre"><code>internal static Boolean SetLastAccessFileTime(SafeFileHandle hFile, IntPtr lpCreationTime, Int64&amp; lpLastAccessTime, IntPtr lpLastWriteTime)</code></pre>
		</div>		
        
		
		
			

			

			

			

			

			
						
			

		

		

	</div>
</div>


					
						












 



<div id="SetLastWriteFileTime2" class="member">
	<div class="member-header">		
		<a href="#"><i class="icon-caret-right"></i><img src="../assets/images/icons/Method_internal.png"/> <p>SetLastWriteFileTime(SafeFileHandle hFile, IntPtr lpCreationTime, IntPtr lpLastAccessTime, Int64& lpLastWriteTime)</p></a>
		
			
				<div class="summary markdown">
					<p>Sets the last write time for files or directories</p>

				</div>
			
		
	</div>

	<div class="member-content">

		<div class="syntax-box">
			<pre class="wrap-pre"><code>internal static Boolean SetLastWriteFileTime(SafeFileHandle hFile, IntPtr lpCreationTime, IntPtr lpLastAccessTime, Int64&amp; lpLastWriteTime)</code></pre>
		</div>		
        
		
		
			

			

			

			

			

			
						
			

		

		

	</div>
</div>


					
						












 



<div id="SetNamedSecurityInfo" class="member">
	<div class="member-header">		
		<a href="#"><i class="icon-caret-right"></i><img src="../assets/images/icons/Method_internal.png"/> <p>SetNamedSecurityInfo(String unicodePath, Win32SecurityObjectType objectType, Win32FileSystemEntrySecurityInformation securityInfo, IntPtr sidOwner, IntPtr sidGroup, IntPtr dacl, IntPtr sacl)</p></a>
		
	</div>

	<div class="member-content">

		<div class="syntax-box">
			<pre class="wrap-pre"><code>internal static UInt32 SetNamedSecurityInfo(String unicodePath, Win32SecurityObjectType objectType, Win32FileSystemEntrySecurityInformation securityInfo, IntPtr sidOwner, IntPtr sidGroup, IntPtr dacl, IntPtr sacl)</code></pre>
		</div>		
        
		

		

	</div>
</div>


					
				

				
			</div>
		</div>

    </body>
</html>

